package models

import "time"

type Merchant struct {
    ID           uint      `gorm:"primaryKey" json:"id"`
    Username     string    `gorm:"size:100;uniqueIndex;not null" json:"username"`
    DisplayName  string    `gorm:"size:100" json:"display_name"`
    Email        string    `gorm:"size:150" json:"email"`
    PasswordHash string    `gorm:"size:255;not null" json:"-"`
    CreatedAt    time.Time `json:"created_at"`
    UpdatedAt    time.Time `json:"updated_at"`
}

func (Merchant) TableName() string { return "merchants" }

